import _ from 'lodash'
// 设置移动端尺寸
export const SettingChange = function (state, node) {
  Object.assign(state.setting, node)
  window.localStorage.setItem('EditorSetting', JSON.stringify(state.setting))
}
// 首页
// 变量名字为 actions 名字
export const HomeDataChange = function (state, node) {
  console.log('李英奇',node.HomeData)
  state.HomeData = _.cloneDeep(node.HomeData);
}


// 分类列表change
export const CurriculumScheduleDataChange = function (state, node) {
  console.log('李英奇',node.CurriculumScheduleData)
  state.CurriculumScheduleData = _.cloneDeep(node.CurriculumScheduleData);
}

// 关于我们
export const AboutWeDataChange = function (state, node) {
  state.AboutWeData = _.cloneDeep(node.AboutWeData);
}
// 文章详情
export const ArticleDetailDataChange = function (state, node) {
  state.ArticleDetailData = _.cloneDeep(node.ArticleDetailData);
}
// 页面展示
export const MyPageDataChange = function (state, node) {
  state.MyPageData = _.cloneDeep(node.MyPageData);
}


// 全部数据 diyAllDataChange
export const diyAllDataChange = function (state, node) {
  state.allPageData = _.cloneDeep(node.allPageData);
}

// 站点id  websiteIdChange
export const websiteIdChange = function (state, node) {
  state.website_id = node.website_id;
}













